package com.zoe.onelink.feign.auth.token.impl;

import com.zoe.onelink.feign.auth.token.FeignTokenEncryptor;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2022</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2022-05-12
 */
public class FeignFixedTokenEncryptor implements FeignTokenEncryptor {

    private final String fixedToken;

    public FeignFixedTokenEncryptor(String fixedToken) {
        this.fixedToken = fixedToken;
    }

    @Override
    public String encrypt(Object... param) {
        return this.fixedToken;
    }

    @Override
    public String decrypt(String token) {
        return token;
    }
}
